package zero.tech.games.logic.process;

import com.alibaba.fastjson.JSONObject;

import zero.tech.core.ZeroContext;
import zero.tech.core.data.Resp;
import zero.tech.games.logic.data.consts.LOGICCMD;
import zero.tech.games.logic.service.api.ILogicService;
import zero.tech.wsnet.common.ReqProcess;
import zero.tech.wsnet.data.IREQ;
import zero.tech.wsnet.net.WebClient;
@IREQ(code = LOGICCMD.REQ_ROOMINFO)
public class ReqRoomInfo extends ReqProcess{

	@Override
	public void process(WebClient webClient, Resp param) {
		JSONObject obj = (JSONObject) param.getParam();
		String token=obj.getString("token");
		String room_id=obj.getString("room_id");
		ILogicService logicService = ZeroContext.getInstance(ILogicService.class);
		logicService.reqRoomInfo(webClient,token,room_id);
	}

}
